import axios from "axios";

export function fetchCarList() {
  return axios.get("http://baojia.chelun.com/v2-car-getMasterBrandList.html");
}

interface FetchListParam {
  pageCode: number;
  pageSize: number;
}
export function fetchList(params: FetchListParam) {
  return axios.get("/api/list", { params });
}

export function fetchListDetail(id: string) {
  return axios.get("/api/list/" + id);
}
